package com.feicheng.iou.commom;

/**
 * @Author tianchunlei
 * @Des //单独定义了一个ReturnCode枚举类用于存储代码和返回的Message
 * @Date 2021/7/7
 **/
public enum ReturnCode {

    //操作成功
    SUCCESS("SUCCESS_CODE", "SUCCESS_MSG"),

    //操作失败
    FAIL("FAIL_CODE", "FAIL_MSG"),

    //系统异常
    ERROR("ERROR_CODE","ERROR_MSG"),

    //登陆失败
    LOGIN_FAIL("LOGIN_FAIL_CODE","LOGIN_FAIL_MSG"),

    //参数不能为空
    PARAM_NOT_NULL("PNN_CODE", "PNN_MSG"),

    //线索插入失败
    RESOURCE_INSERT_FAIL("RIF_CODE","RIF_MSG"),

    //公共接口预约回访插入条数不正确   11201
    COMMON_RESERVATION_BACKVIEW_WRONG_INSERT_COUNT("CRBWIC_CODE","CRBWIC_MSG"),

    //添加线索记录信息失败
    RESOURCERECORD_INSERT_FAIL("RRIF_CODE","RRIF_MSG"),

    //添加学生信息失败
    STUDENT_INSERT_FAIL("SIF_CODE","SIF_MSG"),

    //添加到访线索信息失败
    INTERVIEW_INSERT_FAIL("IIF_CODE","IIF_MSG"),

    //添加试听线索信息失败
    TRY_INSERT_FAIL("TIF_CODE","TIF_MSG"),

    //修改线索信息失败
    RESOURCE_UPDATE_FAIL("RUF_CODE","RUF_MSG"),

    //修改线索记录信息失败
    RESOURCERECORD_UPDATE_FAIL("RRUF_CODE","RRUF_MSG"),

    //修改学生信息失败
    STUDENT_UPDATE_FAIL("SUF_CODE","SUF_MSG"),

    //修改到访线索信息失败
    INTERVIEW_UPDATE_FAIL("IUF_CODE","IUF_MSG"),

    //修改试听线索信息失败
    TRY_UPDATE_FAIL("TUF_CODE","TUF_MSG"),

    //修改预约到访线索信息失败
    RESERVATIONINTERVIEW_UPDATE_FAIL("RIUF_CODE","RIUF_MSG"),

    //修改预约回访线索信息失败
    RESERVATIONBACKVIEW_UPDATE_FAIL("RBUF_CODE","RBUF_MSG"),

    //修改预约试听线索信息失败
    RESERVATIONTRY_UPDATE_FAIL("RTUF_CODE","RTUF_MSG"),

    //修改线索推进状态信息失败
    RESOURCE_STATU_UPDATE_FAIL("RSUF_CODE","RSUF_MSG"),

    //删除线索信息失败
    RESOURCE_DELETE_FAIL("RDF_CODE","RDF_MSG"),

    //删除线索记录信息失败
    RESOURCERECORD_DELETE_FAIL("RRDF_CODE","RRDF_MSG"),

    //删除学生信息失败
    STUDENT_DELETE_FAIL("SDF_CODE","SDF_MSG"),

    //公共接口预约到访插入条数不正确   11202
    COMMON_RESERVATION_INTERVIEW_WRONG_INSERT_COUNT("CRIWIC_CODE","CRIWIC_MSG"),

    //公共接口预约试听插入条数不正确   11203
    COMMON_RESERVATION_TRY_WRONG_INSERT_COUNT("CRTWIC_CODE","CRTWIC_MSG"),

    //向Backview表插入数据条数不正确   11470
    BACKVIEW_WRONG_INSERT_COUNT("BWIC_CODE","BWIC_MSG"),

    //更新Backview表的条数不正确      11471
    BACKVIEW_WRONG_UPDATE_COUNT("BWUC_CODE","BWUC_MSG"),

    //查询学生不存在
    STUDENT_NOT_EXIST("SNE_CODE","SNE_MSG"),

    //删除到访线索信息失败
    INTERVIEW_DELETE_FAIL("IDF_CODE","IDF_MSG"),

    //删除试听线索信息失败
    TRY_DELETE_FAIL("TDF_CODE","TDF_MSG"),

    //删除预约到访线索信息失败
    RESERVATIONINTERVIEW_DELETE_FAIL("RIDF_CODE","RIDF_MSG"),

    //删除预约回访线索信息失败
    RESERVATIONBACKVIEW_DELETEE_FAIL("RBDF_CODE","RBDF_MSG"),

    //删除预约试听线索信息失败
    RESERVATIONTRY_DELETE_FAIL("RTDF_CODE","RTDF_MSG"),

    //账户名或密码不能为空
    ACCOUNT_PASSWORD_NOT_NULL("APNN_CODE","APNN_MSG"),

    ACCOUNT_PASSWORD_WRONG("APW_CODE","APW_MSG"),

    ACCOUNT_DUPLICATE("AD_DODE","AD_MSG"),

    CHANGE_ROLE_NAME_FAIL("CRNF_CODE","CRNF_MSG"),

    DELETE_PERMISSION_FAIL("DPF_CODE","DPF_MSG"),

    INSERT_PERMISSION_FAIL("IPF_CODE","IPF_MSG"),

    INSERT_ROLE_FAIL("IRF_CODE","IRF_MSG"),

    ADD_USER_FAIL("AUF_CODE","AUF_MSG"),

    UPDATE_USER_FAIL("UUF_CODE","UUF_MSG"),

    DELETE_ROLE_FAIL("DRF_CODE","DRF_MSG"),

    UPDATE_RESERVATION_BACKVIEW_FAIL("URBF_CODE","URBF_MSG"),

    UPDATE_RESERVATION_INTERVIEW_FAIL("URIF_CODE","URIF_MSG"),

    UPDATE_RESERVATION_TRY_FAIL("URTF_CODE","URTF_MSG"),

    INSERT_RESERVATION_BACKVIEW_FAIL("RBIF_CODE","RBIF_MSG");



    ReturnCode(String value, String msg){
        this.val = value;
        this.msg = msg;
    }

    public String val() {
        return val;
    }

    public String msg() {
        return msg;
    }

    private String val;
    private String msg;

    //public static final ReturnCode RESERVATIONINTERVIEW_DELETE_FAIL = ;
}
